﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Inovout.Kuajing.Exports.Console.Web.Models
{
    public class ExporterInfo
    {
        [Required(ErrorMessage = "公司名称不可为空")]
        [StringLength(50, ErrorMessage = "密码长度不能超过50个字符")]
        [Alias("公司名")]
        public string CommpanyName { get; set; }
        public int CommpanyCode { get; set; }

        [Compare("CommpanyName", ErrorMessage = "出口商名称被改")]
        public string CommpanyCompareName { get; set; }

        [Required(ErrorMessage = "下单人不可为空")]
        [StringLength(20, ErrorMessage = "密码长度不能超过20个字符")]
        [Alias("下单人")]
        public string OrderPersonName { get; set; }
        public int OrderPersonCode { get; set; }

        [Required(ErrorMessage = "手机不可为空")]
        [StringLength(11, ErrorMessage = "密码长度不能超过11个字符")]
        [RegularExpression(@"^1[3458][0-9]{9}$", ErrorMessage = "手机号格式不正确")]
        public string Phone { get; set; }


        public string TelPhone { get; set; }

        public int orderId { get; set; }

    }
}